package com.ml.gateway.utils;

/**
 * @author ml
 * @date 2023/2/24 13:57
 */
public enum ResponseEnum {

    SUCCESS("00","操作成功"),
    FAILURE("01","操作失败"),
    PARAM_NOT_COMPLETE("02","参数不完整"),
    USER_IS_EXSIT("03","用户已经存在"),
    PASSWORD_IS_NOEQUELS("04","两次密码不一致，请重新输入"),
    NICKNAME_IS_EXSIT("05","昵称重复，请重新输入"),
    USER_IS_NOT_EXSIT("06","用户不存在，请注册"),
    USER_PWD_ISERROR("07","账号或密码错误"),
    VALID_ERROR("08","验证失败,请先登录或注册"),
    EMAIL_IS_EXSIT("09","邮箱重复，请重新输入"),
    PHONE_IS_EXSIT("09","手机号重复，请重新输入"),
    EMAIL_IS_ERROR("10","邮件格式错误,请重新输入"),
    EMAIL_CODE_ERROR("11","验证码错误")
    ;

    private String code;
    private String message;
    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

}
